<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>python_daemon_tools.logger &mdash; python-daemon-tools v0.0.1 documentation</title>
    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
          URL_ROOT:    '../',
          VERSION:     '0.0.1',
          COLLAPSE_MODINDEX: false,
          FILE_SUFFIX: '.html'
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="contents" title="Global table of contents" href="../contents.html" />
    <link rel="index" title="Global index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="top" title="python-daemon-tools v0.0.1 documentation" href="../index.html" />
    <link rel="prev" title="python_daemon_tools.helper" href="helper.html" />
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="helper.html" title="python_daemon_tools.helper"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">python-daemon-tools v0.0.1 documentation</a> &raquo;</li>
      </ul>
    </div>
    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  
  <div class="section" id="module-python_daemon_tools.logger">
<h1><tt class="xref docutils literal"><span class="pre">python_daemon_tools.logger</span></tt><a class="headerlink" href="#module-python_daemon_tools.logger" title="Permalink to this headline">¶</a></h1>
<p>&#64;author: Jean-Lou Dupont</p>
<div class="section" id="functions">
<h2>Functions<a class="headerlink" href="#functions" title="Permalink to this headline">¶</a></h2>
<dl class="function">
<dt id="python_daemon_tools.logger.getDefault">
<!--[python_daemon_tools.logger.getDefault]--><tt class="descclassname">python_daemon_tools.logger.</tt><tt class="descname">getDefault</tt><big>(</big><em>name</em>, <em>include_console=False</em>, <em>include_syslog=False</em><big>)</big><a class="headerlink" href="#python_daemon_tools.logger.getDefault" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a simple cross-platform logger</p>
<p>Usage</p>
<div class="highlight"><pre><span class="n">log</span> <span class="o">=</span> <span class="n">logger</span><span class="o">.</span><span class="n">getDefault</span><span class="p">(</span><span class="s">&#39;my_logger&#39;</span><span class="p">)</span>
<span class="n">log</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s">&#39;message&#39;</span><span class="p">)</span>
</pre></div>
</dd></dl>

<dl class="function">
<dt id="python_daemon_tools.logger.xcLogger">
<!--[python_daemon_tools.logger.xcLogger]--><tt class="descclassname">python_daemon_tools.logger.</tt><tt class="descname">xcLogger</tt><big>(</big><em>appname</em><big>)</big><a class="headerlink" href="#python_daemon_tools.logger.xcLogger" title="Permalink to this definition">¶</a></dt>
<dd><p>Cross-platform log handler</p>
<p>Returns:</p>
<ul class="simple">
<li>NTEventLogHandler for win32 platform</li>
<li>SysLogHandler for Unix/Linux platforms</li>
</ul>
</dd></dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h3>Table Of Contents</h3>
            <ul>
<li><a class="reference external" href=""><tt class="docutils literal"><span class="pre">python_daemon_tools.logger</span></tt></a><ul>
<li><a class="reference external" href="#functions">Functions</a></li>
</ul>
</li>
</ul>

            <h4>Previous topic</h4>
            <p class="topless"><a href="helper.html" title="previous chapter"><tt class="docutils literal"><span class="pre">python_daemon_tools.helper</span></tt></a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="../_sources/modules/logger.txt">Show Source</a></li>
            </ul>
            <h3>Quick search</h3>
            <form class="search" action="../search.html" method="get">
              <input type="text" name="q" size="18" /> <input type="submit" value="Go" />
              <input type="hidden" name="check_keywords" value="yes" />
              <input type="hidden" name="area" value="default" />
            </form>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="helper.html" title="python_daemon_tools.helper"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">python-daemon-tools v0.0.1 documentation</a> &raquo;</li>
      </ul>
    </div>
    <div class="footer">
      &copy; Copyright 2009, Jean-Lou Dupont.
      Last updated on Mar 27, 2009.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
    </div>
  </body>
</html>